package service

import (
	"gorm.io/gorm"
	"template-generate/db"
)

type FileCopyService struct {
	db *gorm.DB
}

func (s *FileCopyService) List() []db.FileCopy {
	var fileCopys []db.FileCopy
	s.db.Model(&db.FileCopy{}).Order("sort_num desc").Find(&fileCopys)
	return fileCopys
}
